<?php
namespace App\Models;

use App\Models\BaseModel;

class SurveyAnswer extends BaseModel
{
    protected $table = 'survey_answer';

    public function answer_option_items()
    {
        return $this->hasMany('App\Models\SurveyAnswerOption', 'answer_id', 'id');
    }

    public function answer_content_items()
    {
        return $this->hasMany('App\Models\SurveyAnswerContent', 'answer_id', 'id');
    }

    public function AnswerSheet()
    {
        return $this->belongsTo('App\Models\SurveyAnswerSheet', 'answer_sheet_id', 'id');
    }
}
